package cn.lyn4ever.goods.web.controller;

import cn.lyn4ever.common.R;
import cn.lyn4ever.goods.web.service.StoreService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Store)表控制层
 *
 * @author makejava
 * @since 2020-03-26 22:55:32
 */
@RestController
@RequestMapping("store")
public class StoreController {
    /**
     * 服务对象
     */
    @Resource
    private StoreService storeService;

    @GetMapping("getStoreById")
    public R getStoreById(@RequestParam("id") Integer id){

        return R.ok("获取成功").put("data",storeService.getStoreById(id));
    }

}